package com.kob.backend.service.impl.order;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.kob.backend.mapper.OrdersMapper;
import com.kob.backend.pojo.orders;
import com.kob.backend.service.order.OrderDeleteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderDeleteServiceImpl implements OrderDeleteService {
    @Autowired
    private OrdersMapper ordersMapper;
    @Override
    public void deleteorder(Integer orderid) {
        QueryWrapper queryWrapper=new QueryWrapper<orders>();
        queryWrapper.eq("id",orderid);
        ordersMapper.delete(queryWrapper);
    }
}
